package org.jks.util;

import java.util.List;
import java.util.Set;

public class PrintUtil {
	public static void print(List<?> objs) throws Exception{
		if(objs == null){
			throw new Exception("params can not be null");
		}
		for(Object obj : objs){
			System.out.println(obj.toString());
		}
	}
	
	public static String toString(Set<?> objs){
		if(objs == null){
			return "";
		}
		String ret = "";
		for(Object obj : objs){
			ret += obj.toString() +"\n";
		}
		return ret;
	}
}
